// 引入axios
import request from '@/utils/request'
//获取sku列表
export const reqSkuList=(page,limit) => request({url:`/admin/product/list/${page}/${limit}`,method:'get'})

//上架
export const reqOnSale=(skuId) => request({url:`/admin/product/onSale/${skuId}`,method:'get'})
//下架
export const reqCancelSale=(skuId) => request({url:`/admin/product/cancelSale/${skuId}`,method:'get'})
//获取SKu详情的接口
export const reqSkuById = (skuId)=>request({url:`/admin/product/getSkuById/${skuId}`,method:'get'}) 
//删除sku
export const reqDeleteSku=(skuId) =>request({url:`/admin/product/deleteSku/${skuId}`,method:'delete'})